import 'babel-polyfill';
import Vue from 'vue';
import 'normalize.css/normalize.css'; // A modern alternative to CSS resets
import ElementUI, { Notification } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import * as echarts from 'echarts'; // 引入echarts
import './theme/index.css'; // 主题样式
import '@/styles/index.scss'; // global css
import style from './utils/style'; // style for elementTable

import App from './App';
import store from './store';
import router from './router';
import '@/icons'; // icon
import '@/permission'; // permission control
import common from '@/assets/common.js';
import plugins from './plugins'; // plugins
import VueDND from 'awe-dnd';
import vueEsign from 'vue-esign';
import jquery from 'jquery';
window.$ = jquery;
import 'multiple-select/dist/multiple-select.min.css';
import 'multiple-select/dist/multiple-select.js';
import 'multiple-select/dist/locale/multiple-select-zh-CN.js';
import MultipleSelect from 'multiple-select/dist/multiple-select-vue.js';

Vue.component('MultipleSelect', MultipleSelect);

Vue.use(plugins);
Vue.use(VueDND);
Vue.use(vueEsign);
Vue.prototype.common = common;
Vue.prototype.$ = jquery;
Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$style = style;
Vue.prototype.$echarts = echarts;
Vue.prototype.$notification = function(title, type, message) {
    console.log(title, type, message);
    Notification({
        title: title,
        type: type,
        message: message
    });
};
const vm = new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
});
export default vm;
